package org.smr.ministore.entities;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import org.blade.entities.base.BizEntity;

import javax.validation.constraints.NotNull;

/**
 * BrandOrgan实体,对应表：t_brand_organ
**/
public class BrandOrgan extends BizEntity<Long>{

    /**
     * 操作融断
     */
    public static final int EFFECT_FUSE = -1;

    private static final int EFFECT_SUCCESS = 1;

    private static final int EFFECT_FAIL = 0;


    /**
	* 品牌编号
	**/
    @JSONField(
            serializeUsing = ToStringSerializer.class
    )
	@NotNull
	private Long brandId;

	/**
	 * 设置品牌编号的值
	 * @param brandId
	**/
	public void  setBrandId(Long brandId){
		this.brandId = brandId;
	}
	/**
	 * 获取品牌编号的值
	**/
	public  Long getBrandId(){
		return this.brandId;
	}


	/**
	 * 品牌
	 */
	private Brand brand = new Brand();


	/**
	 * 获取品牌
	 * @return Brand
	 */
	public Brand getBrand() {
	    
	    this.brand.setOrganId(this.getOrganId());
		return brand;
	}

	/**
	 * 设置品牌
	 * @param brand
	 */
	public void setBrand(Brand brand) {
	    this.setBrandId(brand.getId());
		this.brand = brand;
	}




	/**
	*
	**/
	private java.util.Date createDate;

	/**
	 * 设置的值
	 * @param createDate
	**/
	public void  setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 * 获取的值
	**/
	public  java.util.Date getCreateDate(){
		return this.createDate;
	}


    /**
    *  查询时间开始
    **/
    private java.util.Date createDateStart;

    /**
    *  查询时间结束
    **/
    private java.util.Date createDateEnd;


    /**
    * 设置Start的值
    * @param createDateStart
    **/
    public void  setCreateDateStart(java.util.Date createDateStart){
    this.createDateStart = createDateStart;
    }
    /**
    * 获取Start的值
    **/
    public  java.util.Date getCreateDateStart(){
    return this.createDateStart;
    }

    /**
    * 设置End的值
    * @param createDateEnd
    **/
    public void  setCreateDateEnd(java.util.Date createDateEnd){
    this.createDateEnd = createDateStart;
    }
    /**
    * 获取End的值
    **/
    public  java.util.Date getCreateDateEnd(){
    return this.createDateEnd;
    }



	/**
	*
	**/
	private java.util.Date updateDate;

	/**
	 * 设置的值
	 * @param updateDate
	**/
	public void  setUpdateDate(java.util.Date updateDate){
		this.updateDate = updateDate;
	}
	/**
	 * 获取的值
	**/
	public  java.util.Date getUpdateDate(){
		return this.updateDate;
	}




    /**
    *  查询时间开始
    **/
    private java.util.Date updateDateStart;

    /**
    *  查询时间结束
    **/
    private java.util.Date updateDateEnd;


    /**
    * 设置Start的值
    * @param updateDateStart
    **/
    public void  setUpdateDateStart(java.util.Date updateDateStart){
    this.updateDateStart = updateDateStart;
    }
    /**
    * 获取Start的值
    **/
    public  java.util.Date getUpdateDateStart(){
    return this.updateDateStart;
    }

    /**
    * 设置End的值
    * @param updateDateEnd
    **/
    public void  setUpdateDateEnd(java.util.Date updateDateEnd){
    this.updateDateEnd = updateDateStart;
    }
    /**
    * 获取End的值
    **/
    public  java.util.Date getUpdateDateEnd(){
    return this.updateDateEnd;
    }




	/**
	*
	**/
	private String remark;

	/**
	 * 设置的值
	 * @param remark
	**/
	public void  setRemark(String remark){
		this.remark = remark;
	}
	/**
	 * 获取的值
	**/
	public  String getRemark(){
		return this.remark;
	}



	/**
	* 删除标识
	**/
	private boolean isDeleted;

	/**
	 * 设置删除标识的值
	 * @param isDeleted
	**/
	public void setIsDeleted(boolean isDeleted){
		this.isDeleted = isDeleted;
	}
	/**
	 * 获取删除标识的值
	**/
	public boolean getIsDeleted(){
		return this.isDeleted;
	}


    /**
     * 品牌名称
     **/
    @NotNull
    private String brandName;

    /**
     * 品牌代码
     **/
    @NotNull
    private String brandCode;


    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }
}